<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--bootstrap插件-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link href="/static/plugin/bootstrap/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/static/plugin/jo/joUI.css" rel="stylesheet"/>
    <!--字体插件-->
    <link href="/static/plugin/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/static/plugin/layui-2.4.3/css/layui.css" rel="stylesheet"/>
    <!--ztree-->
    <link href="/static/plugin/zTree/css/metroStyle/metroStyle.css" rel="stylesheet"/>
    <!--common-->
    <link href="/static/css/common.css" rel="stylesheet"/>
    <title>农用地信息表表单</title>
</head>
<body>
<div class="container-fluid">
    <ul class="layui-tab-title">
        <li class="layui-this">农用地信息</li>
    </ul>
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <!--按钮栏-->
            <div class="form-group button-bar button-bar" id="buttonhtml">
                <!--<button type="button" isShow="joForm.isAdd" class="btn btn-primary" onclick="joForm.save()">
                    <i class="fa fa-plus-circle" aria-hidden="true"></i>&nbsp;新增
                </button>
                <button type="button" isShow="!joForm.isAdd" class="btn btn-info" onclick="joForm.update()">
                    <i class="fa fa-pencil-square" aria-hidden="true"></i>&nbsp;修改
                </button>
                <button type="button" isShow="!joForm.isAdd" class="btn btn-danger" onclick="joForm.del()">
                    <i class="fa fa-trash" aria-hidden="true"></i>&nbsp;删除
                </button>-->
            </div>
            <!--按钮栏-->
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <form id="pageForm" name="pageForm" action="" method="post">
                <h3 style="margin-bottom: 10px">农用地信息：</h3><h6>注：<span style="color: red">*</span>为必填项</h6>
                <table class="table-bordered layui-table">
                    <colgroup>
                        <col width="150">
                        <col width="500">
                        <col width="150">
                    </colgroup>
                    <tbody>
                    <tr>
                        <th class="styleright "><span style="color: red">*</span>编号</th>
                        <td class="stylecenter" colspan="3">
                            <input type="text" name="organizationcode" value="" class="form-control "
                                   ErrEmpty="编号不允许为空"/>
                        </td>
                    </tr>
                    <tr>
                        <th class="styleright"><span style="color: red">*</span>行政区划</th>
                        <td class="stylecenter">
                            <div class="form-group" style="float: left">
                                <label class="control-label" style="float: left;margin-top: 15px">省：&nbsp;</label>
                                <select style="width: 120px;margin-top: 10px" name="provinceCode" id="provinceCode"
                                        class="joSelect form-control" data='' firstItem='{"id":"","name":""}'
                                        dataurl="" keyfield="id" valuefield="name"></select>
                            </div>
                            <div class="form-group" style="float: left;border: 1px;">
                                <label class="control-label" style="float: left;margin-top: 15px;margin-left: 8px">市：&nbsp;</label>
                                <select style="width: 120px;margin-top: 10px" name="cityCode" id="cityCode" class="joSelect form-control"
                                        data='' firstItem='{"id":"","name":""}' dataurl="" keyfield="id"
                                        valuefield="name"></select>
                            </div>
                            <div class="form-group" style="float: left">
                                <label class="control-label" style="float: left;margin-top: 15px;margin-left: 8px">县：&nbsp;</label>
                                <select style="width: 120px;margin-top: 10px" name="countyCode" id="countyCode"
                                        class="joSelect form-control" data='' firstItem='{"id":"","name":""}' dataurl=""
                                        keyfield="id" valuefield="name"></select>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th class="styleright"><span style="color: red">*</span>地块名称</th>
                        <td class="stylecenter">
                            <input type="text" id="landname" name="landname" value="" class="form-control "
                                   ErrEmpty="地块名称不允许为空"/>
                        </td>
                    </tr>
                    <tr>
                        <th class="styleright"><span style="color: red">*</span>类别名称</th>
                        <td class="stylecenter">
                            <input type="text" name="typename" value="" class="form-control " ErrEmpty="类别名称不允许为空"/>
                        </td>
                    </tr>
                    <tr>
                        <th class="styleright"><span style="color: red">*</span>所属区域</th>
                        <td class="stylecenter">
                            <input type="text" name="subordinatearea" value="" class="form-control "
                                   ErrEmpty="所属区域不允许为空"/>
                        </td>
                    </tr>
                    <tr>
                        <th class="styleright"><span style="color: red">*</span>经度</th>
                        <td class="stylecenter">
                            <input type="text" name="longitude" value="" class="form-control "
                                   placeholder="请使用WGS1984或CGCS2000坐标系" ErrEmpty="经度不允许为空"/>
                        </td>
                    </tr>
                    <tr>
                        <th class="styleright"><span style="color: red">*</span>纬度</th>
                        <td class="stylecenter">
                            <input type="text" name="dimension" value="" class="form-control "
                                   placeholder="请使用WGS1984或CGCS2000坐标系" ErrEmpty="纬度不允许为空"/>
                        </td>
                    </tr>
                    <tr>
                        <th class="styleright"><span style="color: red">*</span>耕地类型</th>
                        <td class="stylecenter">
                            <input type="text" name="cultivatedland" value="" class="form-control "
                                   ErrEmpty="耕地类型不允许为空"/>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <th class="styleright">变更次数</th>
                        <td class="stylecenter">
                            <input type="text" name="changetimes" value="" class="form-control "/>
                        </td>
                    </tr>
                    <tr>
                        <th class="styleright">权属</th>
                        <td class="stylecenter">
                            <input type="text" name="ownership" value="" class="form-control "/>
                        </td>
                    </tr>
                    <tr style="display: none">
                        <th class="styleright">锁定</th>
                        <td class="stylecenter">
                            <select name="unlack" value="0" class="form-control">
                                <option value="0">未锁定</option>
                                <option value="1">已锁定</option>
                            </select>
                        </td>
                    </tr>
                    </tbody>
                </table>

                <!--<div class="young-form-item col-md-6 ">
                    <div class="young-form-label">序号</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text"   name="serialnumber" value="" class="form-control "   />
                    </div>
                </div>-->
                <!--<div class="young-form-item col-md-6 must">
                    <div class="young-form-label">编号</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" name="organizationcode" value="" class="form-control " ErrEmpty="编号不允许为空"/>
                    </div>
                </div>-->
                <!--<div class="young-form-item col-md-6 must">
                    <div class="young-form-label">行政区划</div>
                    <div class="young-form-tips"></div>
                    <div class="form-group" style="float: left">
                        <tr class="control-label" style="float: left">省：&nbsp;</tr>
                        <tr>
                            <select style="width: 155px" name="provinceCode" id="provinceCode"
                                    class="joSelect form-control" data='' firstItem='{"id":"","name":""}'
                                    dataurl="" keyfield="id" valuefield="name"></select>
                        </tr>

                    </div>
                    <div class="form-group" style="float: left;border: 1px;">
                        <tr class="control-label" style="float: left">市：&nbsp;</tr>

                        <select style="width: 155px" name="cityCode" id="cityCode" class="joSelect form-control"
                                data='' firstItem='{"id":"","name":""}' dataurl="" keyfield="id"
                                valuefield="name"></select>
                    </div>
                    <div class="form-group" style="float: left">
                        <tr class="control-label" style="float: left">县：&nbsp;</tr>
                        <select style="width: 155px" name="countyCode" id="countyCode"
                                class="joSelect form-control" data='' firstItem='{"id":"","name":""}' dataurl=""
                                keyfield="id" valuefield="name"></select>
                    </div>
                </div>-->
                <!--<div class="young-form-item col-md-6 must">
                    <div class="young-form-label">地块名称</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" id="landname" name="landname" value="" class="form-control "
                               ErrEmpty="地块名称不允许为空"/>
                    </div>
                </div>-->
                <!--<div class="young-form-item col-md-6 must">
                    <div class="young-form-label">类别名称</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" name="typename" value="" class="form-control " ErrEmpty="类别名称不允许为空"/>
                    </div>
                </div>
                <div class="young-form-item col-md-6 must">
                    <div class="young-form-label">所属区域</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" name="subordinatearea" value="" class="form-control " ErrEmpty="所属区域不允许为空"/>
                    </div>
                </div>
                <div class="young-form-item col-md-6 must">
                    <div class="young-form-label">经度</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" name="longitude" value="" class="form-control " ErrEmpty="经度不允许为空"/>
                    </div>
                </div>
                <div class="young-form-item col-md-6 must">
                    <div class="young-form-label">纬度</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" name="dimension" value="" class="form-control " ErrEmpty="纬度不允许为空"/>
                    </div>
                </div>-->
                <!--<div class="young-form-item col-md-6 must">
                    <div class="young-form-label">耕地类型</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" name="cultivatedland" value="" class="form-control " ErrEmpty="耕地类型不允许为空"/>
                    </div>
                </div>
                <div class="young-form-item col-md-6 ">
                    <div class="young-form-label">变更次数</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" name="changetimes" value="" class="form-control "/>
                    </div>
                </div>
                <div class="young-form-item col-md-6 ">
                    <div class="young-form-label">权属</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" name="ownership" value="" class="form-control "/>
                    </div>
                </div>-->
                <div class="young-form-item col-md-6 " style="display: none">
                    <div class="young-form-label">所属类型</div>
                    <div class="young-form-tips"></div>
                    <div class="young-form-input-block">
                        <input type="text" id="tilltype" name="tilltype" value="" class="form-control "
                               ErrNumber="所属类型需填写数字类型"/>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<!--配置信息-->
<script src="/static/js/config.js"></script>
<!--jquery-->
<script src="/static/plugin/jquery/jquery-3.3.1.js"></script>
<script src="/static/plugin/jquery/jquery.cookie.js"></script>
<!--bootstrap-->
<script src="/static/plugin/bootstrap/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="/static/plugin/other/html5shiv.js"></script>
<script src="/static/plugin/other/respond.min.js"></script>
<![endif]-->
<!--layui-->
<script src="/static/plugin/layui-2.4.3/layui.all.js"></script>
<!--ztree-->
<script src="/static/plugin/zTree/js/jquery.ztree.all.js"></script>
<!--common-->
<script src="/static/js/common.js"></script>
<!--jo-->
<script src="/static/plugin/jo/jo.js"></script>
<script src="/static/plugin/jo/jo-adapt.js"></script>
<script src="/static/plugin/jo/jo-page-view.js"></script>
<script src="/static/plugin/jo/jo-page-form.js"></script>
<script src="/static/plugin/jo/jo-listener.js"></script>
<script type="text/javascript">
    $(function () {

        var jParams = {
            "PKName": "id",//主键属性名
            "saveAfter": "toEdit",
            "addUrl": "/nyd/uviAgriculturallandinformation/insert",//新增
            "deleteUrl": "/nyd/uviAgriculturallandinformation/delete",//删除
            "updateUrl": "/nyd/uviAgriculturallandinformation/update",//修改
            "formDataUrl": "/nyd/uviAgriculturallandinformation/get",//查询
            //"readonly2Label" : true //只读转文本
        };
        joForm.initFormPage(jParams);//初始化
        var buttonhtml = "";
        if (jo.getUrlParam('tilltype') == undefined) {
            buttonhtml = '<span class="young-button-placeholder" navigateId="LAND_FORM_BUTTON"></span>';
        } else {
            buttonhtml = '<span class="young-button-placeholder" navigateId="YXBH_LAND_FORM_BUTTON"></span>';
        }
        $('#buttonhtml').html(buttonhtml);
        initButton();
    });
    //初始化新增页面回调函数(在初始化按钮前发生)
    joForm.initFormPageOfAdd = function () {
        $("#tilltype").val(jo.getUrlParam("tilltype"));
        //初始化省市县联动
        initProvinceCityCounty('provinceCode', 'cityCode', 'countyCode');
    };
    //初始化表单值前处理
    joForm.initFormValueBefore = function (oJson) {
        //初始化省市县联动
        initProvinceCityCounty('provinceCode', 'cityCode', 'countyCode', joForm.formData.provinceCode, joForm.formData.cityCode, joForm.formData.countyCode);
    };
    //初始化表单值后处理
    joForm.initFormValueAfter = function (oJson) {

    };
    //新增请求提交前回调函数
    joForm.dealDataAtSaveBefore = function (oJson) {

    };
    //修改请求提交前回调函数
    joForm.dealDataAtUpdateBefore = function (oJson) {

    };
    /* 关于joForm更多回调函数和配置参数可查看jo-page-form.js */
</script>
</body>
</html>
